package com.atguigu.gmall.sms.feign;

import com.atguigu.core.bean.Resp;
import com.atguigu.gmall.sms.vo.SaleVO;
import com.atguigu.gmall.sms.vo.SkuSaleVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * sms提供的Feign调用接口
 */
public interface GmallSmsApi {

    @PostMapping("sms/skubounds/skusale/save")
    Resp<Object> saveSkuSaleInfo(@RequestBody SkuSaleVO skuSaleVO);

    // 获取sku的促销信息
    @GetMapping("sms/skubounds/{skuId}")
    Resp<List<SaleVO>> querySalesBySkuId(@PathVariable("skuId") Long skuId);
}
